/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.finance.service;

import java.util.List;

import com.vivo.finance.entity.ImeiQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.finance.entity.ViEmpToolImei;
import com.vivo.finance.dao.ViEmpToolImeiDao;

/**
 * 串码对比Service
 * @author jyangye
 * @version 2018-01-08
 */
@Service
@Transactional(readOnly = true)
public class ViEmpToolImeiService extends CrudService<ViEmpToolImeiDao, ViEmpToolImei> {

    @Autowired
    private ViEmpToolImeiDao viEmpToolImeiDao;

	public ViEmpToolImei get(String id) {
		return super.get(id);
	}
	
	public List<ViEmpToolImei> findList(ViEmpToolImei viEmpToolImei) {
		return super.findList(viEmpToolImei);
	}
	
	public Page<ViEmpToolImei> findPage(Page<ViEmpToolImei> page, ViEmpToolImei viEmpToolImei) {
		return super.findPage(page, viEmpToolImei);
	}

	public List<ImeiQuery> getGroupList(ViEmpToolImei viEmpToolImei) {
	    return viEmpToolImeiDao.getGroupList(viEmpToolImei);
    }

    @Transactional(readOnly = false)
	public void deleteByUserId(String userId) {
	    viEmpToolImeiDao.deleteByUserId(userId);
    }

    public List<ViEmpToolImei> findListByUserId(String userId) {
	    return viEmpToolImeiDao.findListByUserId(userId);
    }
	
	@Transactional(readOnly = false)
	public void save(ViEmpToolImei viEmpToolImei) {
		super.save(viEmpToolImei);
	}
	
	@Transactional(readOnly = false)
	public void delete(ViEmpToolImei viEmpToolImei) {
		super.delete(viEmpToolImei);
	}
	
}